/**
 * The CombatServerBrowser is a standalone Java application
 * for the Combat project at INHolland Alkmaar. The purpose
 * of this application is to facilitate the selection of a
 * Combat server. These servers are 'gathered' with the
 * CombatMasterServer application (the 'browser' is a GUI).
 * 
 * Created on 25 apr. 2011 @ 01:52:13 by Laurens Andriessen
 */

package tests.laurens.combatserverbrowser;

import java.util.ArrayList;


/**
 * 
 * @author Laurens Andriessen
 * @version 1.0
 */
public class CombatServerBrowser {
	/**
	 * 
	 * @author Laurens Andriessen
	 * @param args
	 * @return void
	 */
	public static void main(String[] args) {
		CombatThread net = new CombatThread("NET");
		CombatThread gui = new CombatThread("GUI");
		net.start();
		gui.start();
	}

	public static ArrayList<CombatServerEntry> serverlist = new ArrayList<CombatServerEntry>();
}


/**
 * http://nl.wikibooks.org/wiki/Programmeren_in_Java/Multithreading
 * 
 * @author Laurens Andriessen
 * @version 1.0
 */
class CombatThread extends Thread {
	private String type;

	public CombatThread(String threadName) {
		super(threadName);
		this.type = threadName;
	}

	public void run() {
		if (type == "NET") new CombatServerBrowserNET();
		if (type == "GUI") new CombatServerBrowserGUI();
	}
}
